package oop4;

/**
 * @author oldliu
 * @since 1.0
 */
//古筝
public class ChinaPiolin {
    static int lines = 5;//弦数
    String color;
    String owner;

    public static void print() {
        System.out.println("现在流行" + lines + "弦琴");
        //System.out.println(color);
    }

    public void play(String audience) {
        print();
        System.out.println("这是一把" + lines + "弦琴");
        System.out.println(owner + "弹奏，给" + audience + "听");
    }

    public void show() {
        System.out.println("这把古筝属于" + owner + ",颜色是：" + color + ",是一把" + lines + "弦琴");
    }
}
